<%@ page language="java" contentType="text/html; charset=utf8" pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><spring:message code="label.header.patients.all" /></title>
<link href="<c:url value = "resources/css/style.css"/>" rel="stylesheet" type="text/css" media="screen, projection" />
</head>
<body>
	<div align="center" class="layout">
		<div class="header">
			<img src="resources/images/immunologyHeader.png" alt="Immunology" />
		</div>
		<div class="startFromTop">
			<div class="sideLeft">
				<tags:doctorMenu />
			</div>
			<div class="content">
				<div class="customBox">
					<h2>
						<spring:message code="label.header.patients.all" />
					</h2>
					<div class="block" id="rightFullPanel">
						<%-- <tags:patientRegistration/> --%>
						This is all patient page
							<table class="table">
								<tr>
									<td>Прізвище</td>
									<td>Ім'я</td>
									<td>По батькові</td>
									<td></td>
								</tr>
								<c:forEach items="${patients}" var="patient">
									<tr>
										<td><c:out value="${patient.lastName}"></c:out>
										</td>
										<td><c:out value="${patient.firstName}"></c:out>
										</td>
										<td><c:out value="${patient.middleName}"></c:out>
										</td>
										<td>
											<a href="<c:url value="/patient/show/${patient.id}"/>">Show</a>
											<a href="<c:url value="/patient/edit/${patient.id}"/>">Edit</a>
											<a href="<c:url value="/patient/delete/${patient.id}"/>">Delete</a>
										</td>
									</tr>
								</c:forEach>
							</table>
					</div>
				</div>
			</div>
		</div>
		<div class="footer">
			<spring:message code="label.footer" />
		</div>
	</div>
	<script type="text/javascript" src="resources/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="resources/js/scripts.js"></script>
</body>
</html>